<script setup lang="ts">
import { ref } from 'vue'

const options = ref([
  {
    label: '男',
    value: 1
  },
  {
    label: '女',
    value: 0
  }
])
const modelValue = ref(1)
</script>

<template>
  <div class="radio-page">
    <h1>{{ modelValue }}</h1>
    <!-- 默认选中男 -->
    <!-- <CpRadioBtn
      :options="options"
      :modelValue="modelValue"
      @update:modelValue="modelValue = $event"
    ></CpRadioBtn> -->
    <CpRadioBtn :options="options" v-model="modelValue"></CpRadioBtn>
  </div>
</template>

<style lang="scss" scoped></style>
